package com.fruitsales.comment.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fruitsales.goods.pojo.goods;

public class comment {
    private Integer cmid;

    

    private String satisfaction;

    private String content;
    
    private goods goods;
    
    private Integer uid;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
   	@JsonFormat(pattern = "yyyy-MM-dd ", timezone = "GMT+8")
    private Date date;
    

	public comment() {
		super();
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	

	@Override
	public String toString() {
		return "comment [cmid=" + cmid + ", satisfaction=" + satisfaction + ", content=" + content + ", goods=" + goods
				+ ", uid=" + uid + ", date=" + date + "]";
	}

	public comment(String satisfaction, String content, com.fruitsales.goods.pojo.goods goods, Integer uid, Date date) {
		super();
		this.satisfaction = satisfaction;
		this.content = content;
		this.goods = goods;
		this.uid = uid;
		this.date = date;
	}

	public comment(Integer cmid, String satisfaction, String content, com.fruitsales.goods.pojo.goods goods,
			Integer uid, Date date) {
		super();
		this.cmid = cmid;
		this.satisfaction = satisfaction;
		this.content = content;
		this.goods = goods;
		this.uid = uid;
		this.date = date;
	}

	public goods getGoods() {
		return goods;
	}

	public void setGoods(goods goods) {
		this.goods = goods;
	}

	public Integer getCmid() {
        return cmid;
    }

    public void setCmid(Integer cmid) {
        this.cmid = cmid;
    }

   

    public String getSatisfaction() {
        return satisfaction;
    }

    public void setSatisfaction(String satisfaction) {
        this.satisfaction = satisfaction == null ? null : satisfaction.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }
}